home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / rybbs65.zip / RYBBS65.LZH / FASTSTRT.BAT < prev    next >
DOS Batch File  |  1990-07-01  |  2KB  |  96 lines

  1. echo off
  2. cls
  3. if "%1" == "" goto error
  4. if %1 == 1 goto cont1
  5. if %1 == 2 goto cont1
  6. goto error
  7. :cont1
  8. if "%2" == "" goto cont2
  9. if %2 == 1200 goto cont2
  10. if %2 == 2400 goto cont2
  11. if %2 == 9600 goto cont2
  12. goto error
  13. :cont2
  14. echo Welcome to RyBBS ! ! ! ! ! !
  15. echo .
  16. echo This will set up the RYBBS system and will
  17. echo use THIS directory as the RYBBS system directory.
  18. echo .
  19. echo Make sure the latest version of RYBBS
  20. echo is in THIS directory.
  21. echo .
  22. echo This will start RyBBS with the following parameters:
  23. echo       Com Port : %1
  24. if "%2" == "" goto 1200
  25. if %2 == 1200 goto 1200
  26. if %2 == 2400 goto 2400
  27. if %2 == 9600 goto 9600
  28. goto error
  29. :9600
  30. echo      Baud Rate : 9600 baud.
  31. goto afterbaud
  32. :2400
  33. echo      Baud Rate : 2400 baud.
  34. goto afterbaud
  35. :1200
  36. echo      Baud Rate : 1200 baud.
  37. :afterbaud
  38. echo .
  39. echo If this is not what you desire please press Ctrl and
  40. echo the Break key NOW! Then press the Y key. Otherwise,
  41. pause
  42. cls
  43. echo  
  44. echo  
  45. echo Starting RyBBS...Just a moment, please!
  46. md dl1>nul
  47. md dl2>nul
  48. md dl3>nul
  49. md dl4>nul
  50. md upload>nul
  51. if not exist dl1\files.bbs copy files.bbs dl1\files.bbs>nul
  52. if not exist dl2\files.bbs copy files.bbs dl2\files.bbs>nul
  53. if not exist dl3\files.bbs copy files.bbs dl3\files.bbs>nul
  54. if not exist dl4\files.bbs copy files.bbs dl4\files.bbs>nul
  55. if not exist upload\files.bbs copy files.bbs upload\files.bbs>nul
  56. copy modeinit.12 modeinit.bbs>nul
  57. copy start12.bbs startup.bbs>nul
  58. if "%2" == "" goto start
  59. if %2 == 9600 copy start96.bbs startup.bbs>nul
  60. if %2 == 9600 copy modeinit.96 modeinit.bbs>nul
  61. if %2 == 2400 copy start24.bbs startup.bbs >nul
  62. if %2 == 2400 copy modeinit.24 modeinit.bbs>nul
  63. :start
  64. rybbs %1 /c
  65. if errorlevel 1 goto cont
  66. goto quit
  67. :cont
  68. echo .
  69. echo .
  70. echo .
  71. r %1
  72. :error
  73. cls
  74. echo The proper usage of this program is :
  75. echo .
  76. echo faststrt Com
  77. echo      or
  78. echo faststrt Com 2400
  79. echo    for 2400 baud modems
  80. echo      or
  81. echo faststrt Com 9600
  82. echo    for 9600 baud modems
  83. echo .
  84. echo You MUST specify the COM port as either 1 or 2
  85. echo Example:
  86. echo faststrt 2 2400
  87. echo faststrt 1
  88. goto end
  89. :quit
  90. cls
  91. echo .
  92. echo .
  93. echo .
  94. echo Thanks for using RyBBS!
  95. :end
  96.